from django.db import models

try:
    from apps.django_extensions.db.fields.encrypted import EncryptedTextField, EncryptedCharField
except ImportError:

    class EncryptedCharField():
         def __init__(self, **kwargs):
             pass

    class EncryptedTextField():
         def __init__(self, **kwargs):
             pass


class Secret(models.Model):
    name = EncryptedCharField(blank=True, max_length=255)
    text = EncryptedTextField(blank=True)
